<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        width: 100px;
        height: 100px;
        background-color: orange;
        /* display: inline-block; */
        display: inline;
      }
      .d2 {
        background-color: green;
      }
      a {
        background-color: green;
        width: 100px;
        height: 100px;
        display: inline-block;
        /* display: block; */
      }
    </style>
  </head>
  <body>
    <div class="d1">前端</div>
    <div class="d2">java</div>
    <div class="d3">python</div>
    <a href="http://www.baidu.com">baidu</a>
    <a href="">jd</a>
  </body>
</html>
